<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>小程序管理系统</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  
  <link rel="stylesheet" href="/Public/layui/css/layui.css"  media="all">
  <script src="/Public/js/echarts.min.js" charset="utf-8"></script>
  <script src="/Public/layui/layui.js" charset="utf-8"></script>
  <style type="text/css">
  .tongji-box{
    text-align: center;
    background: #63BA79;
    padding:20px;
    color: #fff;
  }
  .tongji-title{
    font-size: 26px;
  }
  .tongji-num{
    font-size: 24px;
  }
  #chart-box{
    margin-top: 30px;
    height: 500px;
  }
  </style>
</head>
<body>
<div class="layui-layout layui-layout-admin" id = "divadmin">
  <!---->
  <div id = "divhead" class = "layui-layout layui-layout-admin"></div>


  <div class="layui-body" id = "divbody">
    <label style = "position:absolute;top:50px;left:50px;font-size: 26px;">欢迎使用</label>
    <!-- 内容主体区域 -->
    <!--<div style="padding:0 15px;">-->
      <!--<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">-->
        <!--<legend>数据统计</legend>-->
      <!--</fieldset>-->
      <!--<div class="layui-row layui-col-space10">-->
        <!--<div class="layui-col-md4">-->
          <!--<div class="tongji-box">-->
            <!--<div class="tongji-num">0</div>-->
            <!--<div class="tongji-title">转发次数</div>-->
          <!--</div>-->
        <!--</div>-->
        <!--<div class="layui-col-md4">-->
          <!--<div class="tongji-box">-->
            <!--<div class="tongji-num">0</div>-->
            <!--<div class="tongji-title">转发人数</div>-->
          <!--</div>-->
        <!--</div>-->
        <!--<div class="layui-col-md4">-->
          <!--<div class="tongji-box">-->
            <!--<div class="tongji-num">0</div>-->
            <!--<div class="tongji-title">累计用户数</div>-->
          <!--</div>-->
        <!--</div>-->
      <!--</div>-->

      <!--<div id="chart-box">-->


      <!--</div>-->
    <!--</div>-->
  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    © 2017-2018 <a href="https://www.58zltc.com" target="_blank">借书小程序</a> All Rights Reserved.
  </div>
</div>
<script src="/Public/js/echarts.min.js" charset="utf-8"></script>
<script src="/Public/layui/layui.js" charset="utf-8"></script>
<script src="/Public/js/jquery-1.11.1.min.js" charset="utf-8"></script>
<script>
  $(function(){
      $('#divhead').load('/index.php/Tongcheng/Index/menu/wid/2.html');
  })
//JavaScript代码区域
layui.use('element', function(){
  var element = layui.element;
});
var myChart = echarts.init(document.getElementById('chart-box'));
var option = {
    title: {
        text: '一周趋势'
    },
    tooltip: {},
    legend: {
        data:['访问次数','访问人数']
    },
    xAxis: {
        data: ["2017-10-12","2017-10-13","2017-10-14","2017-10-15","2017-10-16","2017-10-17","2017-10-18"]
    },
    yAxis: {},
    series: [{
        name: '访问次数',
        type: 'bar',
        data: [2, 2, 3, 4, 5, 6, 7]
    },{
        name: '访问人数',
        type: 'bar',
        data: [1, 1, 2, 1, 2, 3, 5]
    }],
    color: ['#FFB800','#FF5722', '#01AAED', '#5FB878', '#91c7ae','#749f83',  '#ca8622', '#bda29a','#6e7074', '#546570', '#c4ccd3']
};
myChart.setOption(option);
</script>
</body>
</html>